<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind 指令</title>
</head>
<body>
<div id="app">
    <a v-bind:href="href_url">有问题，百度一下</a>
    <img v-bind:src="src_url" alt="图片" />
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                let href_url = 'https://www.baidu.com'
                let src_url = 'https://consumer.huawei.com/content/dam/huawei-cbg-site/common/mkt/pdp/phones/mate-x3/img/kv/kv@2x.webp'
                return {
                    href_url, src_url
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>